// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from "@/utils/request.js";

/**
 * 开票列表
 * 
*/
export function getInvoicerecord(){
  return request.get('retail/store/user/closing/invoicerecord');
}


/**
 * 新增开票信息
 * 
*/
export function addInvoicerecord(data){
  return request.post('retail/store/user/closingTemplate/invoice',data);
}


/**
 * 编辑开票信息
 * 
*/
export function editInvoicerecord(data){
  return request.post('retail/store/user/closingTemplate/invoice',data);
}

/**
 * 开票信息详情
 * 
*/
export function getInvoicerecordDetail(id){
  return request.get(`retail/store/user/closingTemplate/invoiceById?id=${id}`);
}

/**
 * 删除开票信息
 * 
*/
export function delInvoicerecord(id){
  return request.get(`retail/store/user/closingTemplate/delInvoice?id=${id}`);
}


/**
 * 提交开票凭证
 * 
*/
export function submitInvoicePics(data){
  return request.post('retail/store/user/closing/upInvoice',data);
}